/**
 * 
 */
package ar.edu.unicen.exa.oop.bbquery.model.forum.content.filters;

import ar.edu.unicen.exa.oop.bbquery.model.forum.content.PostContent;

/**
 * A simple Not Filter
 * @author nicolas
 *
 */
public class NotFilter extends LeafFilter {

    private ContentFilter filter;

    public NotFilter(ContentFilter f) {
	this.filter=f;
    }
    
    @Override
    public boolean evaluate(PostContent thing) {
	return !filter.evaluate(thing);
    }

}
